import { GET_INIT_LIST,CHANGE_INPUT_VALUE, ADD_TODO_ITEM, DELETE_TODO_ITME, INIT_LIST_ACTION } from './actionTypes.js'


export const getInputChangeAction = (value) => ({
    type: CHANGE_INPUT_VALUE,
    value
})

export const getAddItemAction = () => ({
    type: ADD_TODO_ITEM
})

export const getDeleteItemAction = (value) => ({
    type: DELETE_TODO_ITME,
    value
})

export const initListAction = (data) => ({
    type: INIT_LIST_ACTION,
    data
})
export const getInitList = () => ({
    type: GET_INIT_LIST
})
